//引入公共样式
@import "./common";
//轮播图的样式
.banner {
  width: 100%;
  height: auto;
  .swiper-container {
    //   使得对应的文字相对整个swiper容器定位
    position: relative;
    .swiper-slide {
      background-color: #00ffff;
      //轮播图上文字样式
      .banner-text {
        position: absolute;
        top: 60%;
        left: 50%;
        text-align: center;
        transform: translate(-50%, -50%);
        h3 {
          font-size: 70px;
          color: #fff;
        }
        p:nth-of-type(1) {
          font-size: 12px;
          color: #fff;
          letter-spacing: 15px;
          margin-bottom: 120px;
        }
        p:nth-of-type(2) {
          font-size: 14px;
          color: #dbdbda;
          letter-spacing: 3px;
        }
        p:nth-of-type(3) {
          font-size: 22px;
          color: #fff;
          margin-bottom: 30px;
        }
      }
      //轮播图上文字样式结束
    }
    //分页器样式设置
    .swiper-pagination-bullet {
      width: 14px;
      height: 14px;
      border: 1px solid #fff;
    }
    .swiper-pagination-bullet-active {
      background: #dbdbda;
    }
    //分页器样式结束

    //轮播图内文字和箭头图片
    .banner-con {
      position: absolute;
      top: 80%;
      left: 46.5%;
      z-index: 1;
      width: 140px;
      height: 108px;
      .con-text {
        width: 140px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-size: 14px;
        color: #fff;
        border: 1px solid #fff;
        .line {
          display: inline-block;
          width: 26px;
          height: 1px;
          background: #fff;
          transform: translate(0, -5px);
        }
      }
      .con-img {
        //图片居中
        margin: 31px auto 0px;
        width: 15px;
        height: auto;
      }
    }
  }
}
//固定侧边栏的样式
.nav-slide {
  position: fixed;
  width: 106px;
  height: 352px;
  top: 40%;
  right: 110px;
  z-index: 10;
  ul li {
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 1px;
    background-color: #916238;
    color: #fff;
    transition: all 0.5s ease;
    cursor: pointer;
    &:nth-child(1) {
      font-size: 18px;
    }
    &:nth-child(1),
    &:nth-child(7) {
      background-color: #5b2d04;
    }
    &:hover {
      background-color: #5b2d04;
    }
    a {
      color: #fff;
      .nav-icon {
        font-size: 20px;
      }
    }
  }
}
//生活和设计的样式
.life,
.design {
  width: 100%;
  height: 1000px;
}
.life {
  background-color: pink;
}
.design {
  background-color: skyblue;
}
//动画类名，有需要的地方直接加类名 放在最外面方便其他位置使用
.animate-bounce-up {
  animation: bounce-up 1.4s linear infinite;
}
//轮播图底部文字动画
@keyframes bounce-up {
  25% {
    transform: translateY(10px);
  }
  50%,
  100% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-10px);
  }
}
